public class NUM {
    public static void main(String[] args) {
        int count =0;
        for (int i = 100; i < 1000; i++) {
            int ge=i%10;
            int shi=(i%100)/10;
            int bai=i/100;

            count=(bai*bai*bai)+(shi*shi*shi)+(ge*ge*ge);

            if(count==i){
                System.out.println(i);
            }
        }
    }
}
